//
//  SFTempVc.swift
//  SFWeiBo
//
//  Created by 孙凡 on 16/4/8.
//  Copyright © 2016年 Edward. All rights reserved.
//

import UIKit

class SFTempVc: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.redColor()

        self.navigationItem.title = "第一个控制器"


//        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_back_withtext", title: "返回", target: self, SEL: #selector(SFTempVc.pop))

        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: nil, title: "push", target: self, SEL: #selector(SFTempVc.push))
    }

    func pop(){

        navigationController?.popViewControllerAnimated(true)
    }

    func push(){

        navigationController?.pushViewController(SFTempTwoViewController(), animated: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    

}
